Skip to content

fix(color): wait for power button release before splash power check - #8000

Merged
pfeerick merged 1 commit into
mainfrom
fix/pwr-release-wait-splash
Nov 5, 2026
Merged

pfeerick merged 1 commit into
mainfrom
fix/pwr-release-wait-splash

Conversation

@pfeerick

@pfeerick pfeerick commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

When powering on, if the power button is still held as the splash screen appears, the shutdown countdown starts straight away instead of waiting for the button to be released. On radios with two power buttons that aren't PWR_BUTTON_DUAL (e.g. T18 H7, PA01), still holding both buttons makes the shutdown delay zero, so the radio turns straight back off. Noticed it myself during testing PRs a couple days ago and was also reported on Discord.

Cause

Fix

Apply the release wait to all PWR_BUTTON_PRESS radios. killAllEvents() stays limited to PWR_BUTTON_DUAL radios, where the power buttons double as SYS/MDL keys. Shutdown behaviour after boot is unchanged.

2.12 is not affected: its splash loop doesn't call pwrCheck() on hardware.

Testing

Tested on hardware: T18 H7, PA01, TX16S and V15.

🤖 Generated with Claude Code

Since #7618 the color splash wait actually runs on H7 radios, and it
calls pwrCheck() via blockUntilClose(). If the power button used to turn
the radio on is still held, the shutdown countdown starts (or, with both
buttons held on PWR_EXTRA_SWITCH radios, the radio turns straight off).

The release wait added in #7618 was limited to PWR_BUTTON_DUAL radios;
apply it to all PWR_BUTTON_PRESS radios, keeping killAllEvents() for the
dual-button ones only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pfeerick pfeerick added this to the 3.0 milestone Nov 5, 2026
@pfeerick pfeerick added color Related generally to color LCD radios bug/regression ↩️ A new version of EdgeTX broke something labels Nov 5, 2026
@pfeerick
pfeerick merged commit 8b784b6 into main Nov 5, 2026
42 checks passed
@pfeerick
pfeerick deleted the fix/pwr-release-wait-splash branch November 5, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/regression ↩️ A new version of EdgeTX broke something color Related generally to color LCD radios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant